package com.training.java.core.homework02;

public class PrintNames {

	public static void main(String[] args) {

		int wordsPerLine = 0;

		String[] nameArray = { "Almas Ain", "Anuradha", "Arman M Khan",
				"Binod Silwal", "Cheryl Dixon", "Geetha Gattu", "Henok Hailu",
				"Henry Bastin", "Jaya", "Kuldeep", "Manisha Ojha",
				"Mira Rani Dinda", "Mrudula", "Mytri", "Narendra",
				"Navadeepak Gohil", "Naveen Mareddy", "Nikunj Patel",
				"Peng Li", "Praneesh", "Praneeth", "Raji Java student",
				"RamaLakshmi Lanka", "Ravi Java Student", "Ravi Nadendla",
				"Reenu Khurana", "Ronnie", "Samkit Java student", "Satya",
				"Shawn Seed", "Shovan Biswas", "Siva Java student",
				"Sunitha Paladugu", "Sushil Kodali", "Susmitha Karjala",
				"Swapna Chikkula" };

		for (String name : nameArray) {

			if (wordsPerLine == 5) {
				System.out.println(""); System.out.println("");
				wordsPerLine = 0;
			}
			System.out.print(name + "      ");
			++wordsPerLine;
		}
	}

}
